package vip.xiaomaoxiaoke.idempotent.support;


import org.aopalliance.intercept.MethodInvocation;
import vip.xiaomaoxiaoke.idempotent.IdempotentExecutor;

/**
 * 缺省执行器，相当于直接执行业务逻辑
 */
public class NllIdempotentExecutor implements IdempotentExecutor {
    private static final NllIdempotentExecutor INSTANCE = new NllIdempotentExecutor();

    @Override
    public Object invoke(MethodInvocation invocation) throws Throwable {
        return invocation.proceed();
    }

    public static NllIdempotentExecutor getInstance(){
        return INSTANCE;
    }
}
